package jrain.fw.core.business.client;

import java.util.function.Consumer;

import jrain.fw.core.business.BusinessRequest;
import jrain.fw.core.business.BusinessResponse;

/**
 * <pre>
 * 作者：3244924214@qq.com 
 * 描述：  业务远程调用客户端
 * </pre>
 */
public interface BusinessRpcClient {

	public String doSyncStr(BusinessRequest request);

	public void doAsyncStr(BusinessRequest request, Consumer<String> callbak);

	public BusinessResponse doSync(BusinessRequest request);

	public void doAsync(BusinessRequest request, Consumer<BusinessResponse> callbak);

}
